package com.quick.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.quick.system.mapper.DutyRecordMapper;
import com.quick.system.domain.DutyRecord;
import com.quick.system.service.IDutyRecordService;

/**
 * 值班记录Service业务层处理
 * 
 * @author quick
 * @date 2025-01-04
 */
@Service
public class DutyRecordServiceImpl implements IDutyRecordService 
{
    @Autowired
    private DutyRecordMapper dutyRecordMapper;

    /**
     * 查询值班记录
     * 
     * @param id 值班记录主键
     * @return 值班记录
     */
    @Override
    public DutyRecord selectDutyRecordById(Long id)
    {
        return dutyRecordMapper.selectDutyRecordById(id);
    }

    /**
     * 查询值班记录列表
     * 
     * @param dutyRecord 值班记录
     * @return 值班记录
     */
    @Override
    public List<DutyRecord> selectDutyRecordList(DutyRecord dutyRecord)
    {
        return dutyRecordMapper.selectDutyRecordList(dutyRecord);
    }

    /**
     * 新增值班记录
     * 
     * @param dutyRecord 值班记录
     * @return 结果
     */
    @Override
    public int insertDutyRecord(DutyRecord dutyRecord)
    {
        return dutyRecordMapper.insertDutyRecord(dutyRecord);
    }

    /**
     * 修改值班记录
     * 
     * @param dutyRecord 值班记录
     * @return 结果
     */
    @Override
    public int updateDutyRecord(DutyRecord dutyRecord)
    {
        return dutyRecordMapper.updateDutyRecord(dutyRecord);
    }

    /**
     * 批量删除值班记录
     * 
     * @param ids 需要删除的值班记录主键
     * @return 结果
     */
    @Override
    public int deleteDutyRecordByIds(Long[] ids)
    {
        return dutyRecordMapper.deleteDutyRecordByIds(ids);
    }

    /**
     * 删除值班记录信息
     * 
     * @param id 值班记录主键
     * @return 结果
     */
    @Override
    public int deleteDutyRecordById(Long id)
    {
        return dutyRecordMapper.deleteDutyRecordById(id);
    }
}
